home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
COMMUNIC
/
COMMUTIL
/
2258.ZIP
/
EZATYP35.ZIP
/
EAZATYP3.DOC
next >
Wrap
Text File
|
1990-04-23
|
10KB
|
240 lines
EAZATYP3.EXE V3.56
------------------
TYPEs Files to screen which contain EaziLink pseudo-ANSI codes
--------------------------------------------------------------
23rd April 1990
Disclaimer
----------
This program is being put into the Public Domain and may be freely
distributed on the understanding that no responsibility can be
accepted for any problems arising from its use. To the best of our
knowledge, it is 'Bug free' and serves its intended purpose.
No charge, other than a nominal charge for duplication and postage may
be made for it and it should only be supplied as a single ARC, ZIP or
PAK file called EAZATYP3.ARC, EAZATYP3.ZIP or EAZATYP3.PAK, containing
the EAZATYP3.EXE, EAZATYP3.DOC and TEXTFILE.BAT files.
Included files
--------------
EAZATYP3.EXE - The program file.
EAZATYP3.DOC - This documentation.
TEXTFILE.BAT - An example of a simple batch file.
NOTE FOR USERS OF EARLIER VERSIONS
----------------------------------
EazATyp3 now makes use of the COLOUR.HST file to determine the colours
of the 'More Y/N' and 'Press ]Return]..' messages. This has resulted
in the need to provide the Host Main Path to the program as an extra
command line parameter. See 'Using EazAType3' below.
Overview
--------
EazATyp3 converts the output from files containing EaziLink pseudo-
ANSI codes into true ANSI code output. There are two main reasons why
you might want to do this.
1. For use as an EaziLink Door (type 2) or in a batch file being run
from a type 2 Door program. A sample batch file for use as an
EaziLink Host mode type 2 Door program is included to give some
idea of possible uses.
There is one big advantage to using EazATyp3 instead of the normal
TYPE command in a door batch file. Because the emulation being used
by the caller may be passed to the batch file, it is possible to
use the same file to display the contents in either ANSI or plain
text form, whereas using TYPE you would need to have both an ANSI
and a plain text file.
Another advantage is that the display pauses after every screenfull
and at the end.
2. To convert a file containing EaziLink pseudo-ANSI codes into a file
containing true ANSI codes.
Using EAZATYP3
--------------
EazATyp3 may be used from the DOS command prompt, from within batch
files being used as a type 2 Door, or as a door program in its own
right.
Syntax:-
EAZATYP3 <filepathname> <hostmainpath> (AY|N) (CY|N)
<filepathname> is the name of the file to be output and is required. A
full path and drive may be included.
<hostmainpath> is the full path to the Host Main Directory.
AY|N is optional and determines whether the file is output with ANSI
codes, or as plain text. The '|' indicates that either 'Y' or 'N' may
be specified and should not be included in the command. The default,
if omitted, is for output to be plain text.
CY|N is optional and determines whether the program copyright message
is displayed at the start. The '|' indicates that either 'Y' or 'N'
may be specified and should not be included in the command. The
default is for the message to be displayed.
Examples:
EAZATYP3 EXAMPLE.TXT C:\EAZIHOST Output will be as plain text.
EAZATYP3 EXAMPLE.TXT C:\EAZIHOST AY Output will include ANSI codes.
EAZATYP3 EXAMPLE.DOC C:\EAZIHOST CN The copyright message will be
suppressed and output will be
as plain text.
EAZATYP3 EXAMPLE.TXT C:\EAZIHOST AY CN The copyright message will be
suppressed and output will
include ANSI codes.
Installing as an EaziLink Door program
--------------------------------------
The DOORS.HST file should be edited to include a line with the
following entries:-
<validation>;Y;2;<descrip>;<progpathname> <hostmainpath> A%ansi
<validation> is the Minimum Validation level required for access to
the door.
'Y' and '2' specify that 'recovery' is required and that it is a
'doors type 2' program respectively.
<descrip> is the description to be displayed in the Doors Menu.
<progpathname> is the full pathname for the EAZATYP3.EXE program if it
is not in a directory specified in the PATH command in CONFIG.SYS. If
the directory is in the PATH, then only the program name is necessary.
This is required in order that EazAtyp3 can use the correct display
colours and write errors to the SYSTEM.ERR file.
<hostmainpath> is the full path to the Host Main Directory.
'%ansi' is an EaziLink variable and must be preceded with the letter
'A', not separated by any spaces. This determines which terminal
emulation mode is used by EazATyp3.
Optionally 'CN' can be added to the end of the line, to suppress the
copyright message.
Example:-
0;Y;2;View file;C:\EAZILINK\HOSTMAIN\EAZATYP3.EXE TEXTFILE.DOC A%ansi
The above example will display the TEXTFILE.DOC file, using either
ANSI codes or plain text, depending on the settings passed with
'%ansi'.
Installing as part of a batch file running as an EaziLink Door program
----------------------------------------------------------------------
EAZATYP3 may also be used in batch files to output files. If you have
a program such as CHOOSE, or SandSoft's INKEY program, which allows
selection from a menu of options, you can create a batch file with a
menu of files to view.
Example, using the supplied batch file described below:-
0;Y;2;View file;C:\EAZILINK\HOSTMAIN\TEXTFILE.BAT A%ansi CN
will run the batch file called 'TEXTFILE.BAT' when the door described
as 'View file' is selected, passing the current display mode status
and suppressing the copyright message.
A simple batch file
-------------------
A simple batch file is:-
ECHO OFF
EAZATYP3 C:\DOC\TEXTFILE.DOC C:\EAZIHOST\HOSTMAIN %1 %2
ECHO.
PAUSE
and will display the 'TEXTFILE.DOC' file in the '\DOC' directory.
Creating an ANSI file
---------------------
EazATyp3 may also be used from the DOS command prompt, to produce true
ANSI files from an EaziLink pseudo-ANSI file. The syntax to use is:-
EAZATYP3 <pathname> AE
You are then prompted to enter the name you want the file saved with.
This may include a path and/or drive letter, if required.
Error Messages
--------------
System errors resulting from incorrect paths, filenames etc are
displayed on screen AND written to the SYSTEM.ERR file in the Host
Main Directory.
SYSTEM.ERR is created by EaziHost and provides a convenient way for
the Sysop to check on errors. If no SYSTEM.ERR file is found, a new
file will be created. The entry is in the same format as used by
EaziHost and includes the name of the program from which the error
originated, the current system date and a description of the error.
History
-------
3.00 09/10/89 - Initial release version.
3.01 15/10/89 - Minor change to make 'More' prompt more line-noise
proof. Now only reacts to Y, N, or RETURN.
3.02 23/10/89 - Added the facility to suppress the display of the
copyright message.
3.50 08/12/89 - New beta version to convert extra pseudo codes
available with EaziHost V1.
- ^I is converted to tab to col 9, 17 etc.
- ^P waits for Return to be pressed.
- ^Z modified to terminate file, as in EaziLink V3 and
EaziHost V1.
3.51 19/12/89 - Beta. Minor change to include error mesage requesting
notification to the Sysop if invalid parameter passed
to program from doorway.
3.52 01/02/90 - Beta. A delay has been added before the program
exits, to solve a problem of lost characters when
used with the latest version of EaziHost.
- Minor change made to clear the 'Press [Return]..'
message before exit.
- System errors are now written to the SYSTEM.ERR file.
3.55 04/04/90 - First release version for use with EaziLink/EaziHost.
3.56 23/04/90 - Implemented ^L in Teletype mode to clear screen by
sending character 12 decimal, in line with EaziLink.
David Foster
H.L.C. Services
High Leys
Crook
Kendal
Cumbria
LA8 8LF
END